package com.lqq.demo9;

public class Dog extends Animal{
    private String breed;

    /*public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }*/

    public Dog() {
    }

    public Dog(String nickName, String color, int age, double weight, String breed) {
        super(nickName, color, age, weight);
        this.breed = breed;
    }

    @Override
    public void print() {
        super.print();
        System.out.println("品种： " + this.breed);
    }
}
